import java.awt.event.MouseEvent;
import java.util.concurrent.ExecutionException;

@SuppressWarnings("serial")
public class TwitterButtonGetTweetsController extends TwitterButtonController {

	public TwitterButtonGetTweetsController(String defaultImagePath,
			String rolloverImagePath) {
		super(defaultImagePath, rolloverImagePath);
	}
	
	@Override
	public void mouseClicked(MouseEvent e) {
		Thread thread = new Thread() {
			@Override
			public void run() {
				try {
					TweetPanelModel.updateTweets();
				} catch (InterruptedException | ExecutionException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		};
		thread.start();
		
	}


}
